package au.edu.swin.videoshop.bean;

import java.io.Serializable;

public class TitleCopy implements Serializable{
	private String mTitleCopyId;
	private TitleMedium mMedium;
	private Store mStore;
	
	public TitleCopy() {
	}
	
	/**
	 * @return the titleCopyId
	 */
	public String getTitleCopyId() {
		return mTitleCopyId;
	}

	/**
	 * @param titleCopyId the titleCopyId to set
	 */
	public void setTitleCopyId(String titleCopyId) {
		mTitleCopyId = titleCopyId;
	}

	/**
	 * @return the medium
	 */
	public TitleMedium getMedium() {
		return mMedium;
	}

	/**
	 * @param medium the medium to set
	 */
	public void setMedium(TitleMedium medium) {
		mMedium = medium;
	}

	/**
	 * @return the store
	 */
	public Store getStore() {
		return mStore;
	}

	/**
	 * @param store the store to set
	 */
	public void setStore(Store store) {
		mStore = store;
	}
	
	/* (non-Javadoc)
	 * @see java.lang.Object#equals(java.lang.Object)
	 */
	@Override
	public boolean equals(Object obj) {
		if (this == obj) {
			return true;
		}
		if (obj instanceof TitleCopy) {
			return this.mTitleCopyId.equals(((TitleCopy)obj).mTitleCopyId);
		}
		return false;
	}

	/* (non-Javadoc)
	 * @see java.lang.Object#hashCode()
	 */
	@Override
	public int hashCode() {
		return mTitleCopyId.hashCode();
	}

	/* (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return mTitleCopyId;
	}
}
